package com.veetao.api.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.veetao.api.dao.SysConfigDAO;
import com.veetao.api.dao.mapper.SysConfigMapper;
import com.veetao.api.model.AppClientAuth;
import com.veetao.api.model.AppClientInfo;
import com.veetao.api.model.SystemConfig;

@Repository
public class SysConfigDaoImpl implements SysConfigDAO {
	
	@Resource
	private SysConfigMapper mapper;

	public SysConfigDaoImpl() {
		super();
	}

	public SysConfigMapper getMapper() {
		return mapper;
	}

	public void setMapper(SysConfigMapper mapper) {
		this.mapper = mapper;
	}

	@Override
	public List<AppClientInfo> getAppList() {
		return mapper.selectAllAppInfo();
	}


	@Override
	public List<AppClientAuth> loadAllAuthorities() {
		return mapper.selectAllAuth();
	}

	@Override
	public List<SystemConfig> queryAllSystemConfig() {
		return mapper.selectAllSystemConfigs();
	}

	@Override
	public int getMysqlInstanceReturn() {
		return mapper.getMysqlInstanceReturn();
	}

}
